package com.nd.unitylib;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.unity3d.player.UnityPlayer;

public class UnityReceiver extends BroadcastReceiver {
    public UnityReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO: This method is called when the BroadcastReceiver is receiving
        // an Intent broadcast.
        UnityPlayer.UnitySendMessage("Receiver","OnReceiveAction",intent.getAction().toString());
    }
}
